package com.example.demo.mapper;

import com.example.demo.common.Result;
import com.example.demo.dto.SearchTicketGetDTO;
import com.example.demo.entity.OrderTable;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface BuyTicketMapper {
    @MapKey("checi_id")
    Map<Integer, Map> firstSelect(SearchTicketGetDTO searchTicketGetDTO);

    Map secondSelect(Integer checiId, String stop);

    int insertOrder(OrderTable orderTable);

    List<OrderTable> selectOrder(int id);

    int cancelOrder(int id);
}
